package cn.wostore.wxhelper.Xposed;

import android.view.MenuItem;
import cn.wostore.wxhelper.Xposed.MyContextMenuListener;

/**
 * @author wuch
 * @date 2018/12/21 0021
 */
public class OpenSelectMenu implements MenuItem.OnMenuItemClickListener {
    private final MyContextMenuListener myContextMenuListener;
    private final Object object;
    private final String name;

    OpenSelectMenu(MyContextMenuListener myContextMenuListener, Object object, String str) {
        this.myContextMenuListener = myContextMenuListener;
        this.object = object;
        this.name = str;
    }

    @Override
    public boolean onMenuItemClick(MenuItem item) {
        this.myContextMenuListener.loadHook.openSelectContactUI(this.myContextMenuListener.methodHookParam.thisObject, this.name);
        return true;
    }
}
